var user=require('./user');
function teacher(id,name,age){
    // user.apply(this,[id,name,age]);是指teacher继承了user
    user.apply(this,[id,name,age]);
    this.teach=function(res){
        res.write(this.name+"讲课")
    }
}
module.exports=teacher;